C#, sometimes I could flush down my boss the toilet [closed]

Posted by msfanboy on Stack Overflow See other posts from Stack Overflow or by msfanboy
Published on 2010-04-09T19:02:16Z Indexed on 2010/04/09 19:13 UTC
Read the original article Hit count: 525

Filed under:
|
|

Hello all,

I got a paper of instructions from my boss. One of the instructions is in this order:

  • Extend the method GetProductIdBy with theShipmentDate

  • Overload the method GetProductIdBy without theShipmentDate

This is the Method I speak about:

...and theShipmentDate is a DateTime variable

public IProduct GetProductIdBy(string productID)

{ ... return product; }

You know what I did? this ->

public IProduct GetProductIdBy(string productID, DateTime theShipmentDate )

{ ... return product; }

You know what my boss said? The above is wrong!

I asked him how can I overload a method without a parameter like theShipmentDate ??? That makes no sense, he said that reason in because of the subversion repository... what the fuck??

But he did not tell me whats really right I would have to find out for myself... he just didnt tell me and I am sick of asking him every crap if he cant express himself properly.

How would you manage his instruction?

© Stack Overflow or respective owner

Related posts about c#

Related posts about overload